<p><?php 
	if(isset($message)){
		//echo $message;
	}
?>
</p>
<?php if(isset($timesheet)):?>
<h1>Timesheet</h1>
<table border="1" cellspacing="0" cellpadding="5">
<tbody>
	<th>User Id</th>
	<th>Time In</th>
	<th>Time Out</th>
	<th>Hours</th>
</tbody>
<?php foreach($timesheet as $ts) {?>
<tr>
	<td><?php echo $ts->user_id?></td>
	<td><?php echo $ts->time_in?></td>
	<td><?php echo $ts->time_out?></td>
	<td><?php echo $ts->diff?></td>
</tr>
<?php }?>
</table>
<?php endif;?>